package o;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;

public interface ffv extends IInterface {

    public static abstract class b extends Binder implements ffv {

        static class c implements ffv {
            private IBinder ˏ;

            c(IBinder iBinder) {
                this.ˏ = iBinder;
            }

            public IBinder asBinder() {
                return this.ˏ;
            }

            public void ˋ(int i, IBinder iBinder) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.hmf.orb.aidl.IRemoteServiceCallbacks");
                    obtain.writeInt(i);
                    obtain.writeStrongBinder(iBinder);
                    this.ˏ.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }

        public b() {
            attachInterface(this, "com.huawei.hmf.orb.aidl.IRemoteServiceCallbacks");
        }

        public static ffv ˎ(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.huawei.hmf.orb.aidl.IRemoteServiceCallbacks");
            if (queryLocalInterface == null || !(queryLocalInterface instanceof ffv)) {
                return new c(iBinder);
            }
            return (ffv) queryLocalInterface;
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            String str = "com.huawei.hmf.orb.aidl.IRemoteServiceCallbacks";
            switch (i) {
                case 1:
                    parcel.enforceInterface(str);
                    ˋ(parcel.readInt(), parcel.readStrongBinder());
                    parcel2.writeNoException();
                    return true;
                case 1598968902:
                    parcel2.writeString(str);
                    return true;
                default:
                    return super.onTransact(i, parcel, parcel2, i2);
            }
        }
    }

    void ˋ(int i, IBinder iBinder) throws RemoteException;
}
